<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            position: relative;
            width: 120px;
            height: 180px;
            border: 1px solid #000;
            overflow: hidden;
        }
        div>img{
            position: absolute;
            top: 0;
            left: 0;
            animation: deom 1s steps(8) 0s infinite;
            
        }
        @keyframes deom {
            from{
                left: 0;
            }
            to{
                left: -960px;
            }
        }
    </style>
</head>
<body>
    <div>
        <img src="./walking.png" alt="">
    </div>
</body>
</html>